//
//  SAConnectedApi.h
//  IntroductionApp
//
//  Created by 英司 菅澤 on 11/12/14.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIHTTPRequest.h"

@class SAConnectedApi;

typedef enum {
    connectTypeVersion,
    connectTypeNews,   
    connectTypeSound,
    connectTypeYoutube,
} connectType;    

@protocol SAConnectedApiDelegate <NSObject>
@optional

- (void)requestFinished:(SAConnectedApi*)object:(NSString*)request;
- (void)requestFailed:(SAConnectedApi*)object:(NSError*)error;

@end


@interface SAConnectedApi : NSObject<ASIHTTPRequestDelegate>{

}
@property(nonatomic,assign)id<SAConnectedApiDelegate>Delegate;
@property(nonatomic,assign)connectType requestType; // 通信タイプ
// common情報
@property(nonatomic,assign)BOOL isSound;
@property(nonatomic,assign)BOOL isPhoto;

/* 通信開始 */
-(void)getAppVersion;
-(void)getNewsAPI;
-(void)getNewsFile;
-(void)getMusicFileList;
-(void)getYouTubeData;

@end
